<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>

<%@ Register Assembly="UsrControls" Namespace="UsrControls" TagPrefix="cc1" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Informacion para toma de Decisiones</title>
    <link rel="stylesheet" href="Estilos.css" type="text/css">
</head>

<script language="javascript" type="text/javascript">
function Abrir()
{
	var atrib='left=350,top=300,width=380,height=270,resizable=no,location=no,toolbar=no,menubar=no,scrollbars=no,titlebar=no'; 
	 
	//var win = window.open('cambiarclave.aspx?SSM_ID=8','ventana',atrib);
	window.open('cambiarclave.aspx','ventana',atrib);
	alert(window.history);
	 
	//win.opener = self;
}
</script>
 <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
		</script>
		<script type="text/javascript">
		    _uacct = "UA-21344736-4";
		    urchinTracker();
		</script>

<script language="javascript">window.onresize = function(){resizePopUp();}</script>

<body  id="login">
    <form id="Form1" method="post" runat="server">
        <img src="Imagenes/sig-login.png" width="347" height="104" alt="SIG" />
<table width="310" border="0" cellpadding="0" cellspacing="0" class="login">
  <tr>
    <td><asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" PostBackUrl="http://sig.mincultura.gov.co/login.aspx"><img src="Imagenes/tab-consultas-off.gif" width="147" height="39" alt="Consultas SIG" /></asp:LinkButton></td>
    <td><img src="Imagenes/tab-admin-on.gif" width="163" height="39" alt="Administrador SIG" /></td>
    </tr>
  <tr>
    <td colspan="2" class="fondologin">    
        <anthem:ValidationSummary ID="ValidationSummary1" runat="server" AutoUpdateAfterCallBack="True"
                        CssClass="notification note-error" ValidationGroup="groupIngreso"></anthem:ValidationSummary>
        <anthem:Label ID="lblMensaje" runat="server" AutoUpdateAfterCallBack="True" CssClass="notification note-error"
                        Visible="False" Width="100%"></anthem:Label>
    <table width="255" border="0">
      <tr>
        <td>Usuario:</td>
        <td><anthem:TextBox ID="txtUsuario" runat="server" AutoUpdateAfterCallBack="True" CssClass="text"
                                    Width="120px" MaxLength="20" ToolTip="Usuario"></anthem:TextBox><asp:RequiredFieldValidator
                                        ID="reqUsuario" runat="server" Display="Dynamic" ControlToValidate="txtUsuario"
                                        ErrorMessage="Debe ingresar el campo Usuario" ValidationGroup="groupIngreso">*</asp:RequiredFieldValidator></td>
        </tr>
      <tr>
        <td>Clave:</td>
        <td><anthem:TextBox ID="txtClave" runat="server" AutoUpdateAfterCallBack="True" CssClass="text"
                                    Width="120px" MaxLength="8" ToolTip="Clave" TextMode="Password"></anthem:TextBox><asp:RequiredFieldValidator
                                        ID="reqClave" runat="server" Display="Dynamic" ControlToValidate="txtClave" ErrorMessage="Debe ingresar el campo Clave" ValidationGroup="groupIngreso">*</asp:RequiredFieldValidator></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td><anthem:ImageButton ID="btnIngresar" runat="server" ImageUrl="Imagenes/bt-ingresar.gif"
                                    OnClick="btnIngresar_Click" ValidationGroup="groupIngreso"></anthem:ImageButton></td>
                        </tr>
    </table></td>
  </tr>
  <tr>
    <td colspan="2" class="loginabajo"> 
        <anthem:LinkButton ID="LinkButtonOlvidoClave" runat="server" CssClass="olvido" OnClick="btnolvidoClave_Click" CausesValidation="False">Olvido su contrasena</anthem:LinkButton>
        <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/Documentos/ManualUsuarioSig.pdf"
                                        Target="_blank" CssClass="manual">Ver Manual de Usuario</asp:HyperLink></td>
                           </tr>
</table>
<div class="footer"><p></p>
<img src="Imagenes/logo-mincultura-login.gif" width="105" height="96" alt="Ministerio de Cultura" /></div>

             
        <cc1:PopupPanel ID="PopupPanel1" runat="server" Height="267px" Width="599px">
             <anthem:Label ID="lblMensajeNuevo" runat="server" CssClass="notification note-info" 
                            Visible="False" AutoUpdateAfterCallBack="True" UpdateAfterCallBack="True"></anthem:Label>
             <anthem:ValidationSummary ID="ValidationSummary2" runat="server" CssClass="notification note-error" ValidationGroup="CambioContrasena"></anthem:ValidationSummary> 
                    <anthem:ImageButton ID="btnAceptar" runat="server" ImageUrl="Imagenes/bt-cambiocontrasena.gif"
                            AlternateText="Guardar" OnClick="btnAceptar_Click"></anthem:ImageButton>
                        <anthem:ImageButton ID="btnCancelar" runat="server" ImageUrl="Imagenes/bt-regresar.gif"
                            AlternateText="Salir" CausesValidation="False" OnClick="btnCancelar_Click"></anthem:ImageButton>
                <div class="borde">
            <table class="content-box"><TR><TD class="campo">
                        Usuario:</td>
                    <td class="fila1">
                        <anthem:Label ID="lblNombre" runat="server"></anthem:Label></td>
                </tr>
                <tr>
                    <td class="campo">
                        Nueva Clave:</td>
                    <td class="fila1">
                        <anthem:TextBox ID="txtClaveNueva" runat="server" CssClass="text" Width="100px" TextMode="Password"
                            ToolTip="Nueva Clave" MaxLength="8"></anthem:TextBox>
                        <anthem:CompareValidator ID="cmpClave" runat="server" ErrorMessage="CompareValidator"
                            Display="Dynamic" ControlToValidate="txtClaveNueva" ControlToCompare="txtConfirmarClave" Enabled="False" ValidationGroup="CambioContrasena">*</anthem:CompareValidator>
                        <anthem:RegularExpressionValidator ID="regClave" runat="server" ErrorMessage="RegularExpressionValidator"
                            Display="Dynamic" ControlToValidate="txtClaveNueva" Enabled="False" ValidationGroup="CambioContrasena">*</anthem:RegularExpressionValidator>
                        <anthem:RequiredFieldValidator ID="reqClaveNueva" runat="server" ControlToValidate="txtClaveNueva"
                            Display="Dynamic" ErrorMessage="RequiredFieldValidator" Enabled="False" ValidationGroup="CambioContrasena">*</anthem:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="campo">
                        Confirmar Nueva Clave:</td>
                    <td class="fila1">
                        <anthem:TextBox ID="txtConfirmarClave" runat="server" Width="100px" CssClass="text" MaxLength="8"
                            ToolTip="Confirmar Nueva Clave" TextMode="Password"></anthem:TextBox>
                        <anthem:RegularExpressionValidator ID="regConfirmarClave" runat="server" ControlToValidate="txtConfirmarClave"
                            Display="Dynamic" ErrorMessage="RegularExpressionValidator" Enabled="False" ValidationGroup="CambioContrasena">*</anthem:RegularExpressionValidator>
                        <anthem:RequiredFieldValidator ID="reqConfirmarClave" runat="server" ControlToValidate="txtConfirmarClave"
                            Display="Dynamic" ErrorMessage="RequiredFieldValidator" Enabled="False" ValidationGroup="CambioContrasena">*</anthem:RequiredFieldValidator></td>
                </tr>
            </table>
            </div>
           <anthem:PlaceHolder ID="PlaceHolderScript" runat="server"></anthem:PlaceHolder>
        </cc1:PopupPanel><cc1:PopupPanel ID="PopupPanelCorreo" runat="server" Height="267px" Width="599px">
                 <asp:ValidationSummary
                            ID="ValidationSummary1Correo" runat="server" CssClass="notification note-error" ValidationGroup="enviarcorreoContrasena" />
                    <anthem:Label ID="lblMensajeCorreo" runat="server" AutoUpdateAfterCallBack="True"
                            CssClass="notification note-error" UpdateAfterCallBack="True" Visible="False" Width="100%"></anthem:Label>
               
            <div class="borde">
            <table class="content-box" width="100%">
            <tr><td class="box-header clear" colspan="2"><div class="fr"><anthem:ImageButton ID="btnProgramasEjecucion" runat="server" AutoUpdateAfterCallBack="True"
                            ImageUrl="Imagenes/fancy_close.png" OnClick="btnProgramasEjecucion_Click" CausesValidation="False" /></div><h2>Recuperar Contrasena</h2></td></tr>
                <tr>
                    <td class="instruccion" colspan="2">
                        Por favor ingrese su cuenta de correo.</td>
                </tr>
                <tr>
                    <td class="campo">
                        Correo electronico:<asp:TextBox ID="txtCorreoElectronico" runat="server" CssClass="text"
                            MaxLength="100" ToolTip="Correo electronico" Width="189px"></asp:TextBox><asp:RequiredFieldValidator
                                ID="reqCorreoElectronico" runat="server" ControlToValidate="txtCorreoElectronico"
                                Display="Dynamic" Enabled="False" ValidationGroup="enviarcorreoContrasena">*</asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="regCorreoElectronico"
                                    runat="server" ControlToValidate="txtCorreoElectronico" Display="Dynamic" ErrorMessage="RegularExpressionValidator" ValidationGroup="enviarcorreoContrasena">*</asp:RegularExpressionValidator>
                        </td><td>
                    <asp:ImageButton ID="btnIngresarCorreo" runat="server" ImageUrl="Imagenes/bt-ingresar.gif"
                            OnClick="btnIngresarCorreo_Click" ValidationGroup="enviarcorreoContrasena" /></td>
                </tr>
            </table>
            </div>
            <anthem:PlaceHolder ID="PlaceHolder1" runat="server">
            </anthem:PlaceHolder>
        </cc1:PopupPanel>

    </form>
</body>
</html>
